<?php
// +----------------------------------------------------------------------
// | Author: derek <693472824@qq.com> <http://www.bloveambition.com/>
// +----------------------------------------------------------------------

namespace Api\Model;
use Think\Model\ViewModel;

/**
 * 订单-服务类型模型层
 * derek <693472824@qq.com>
 */
class OrdersDetailViewModel extends ViewModel {

    protected $viewFields = array(
            
        'Orders'   =>  array(
                            'order_id', 'user_id', 'address_id', 'order_no', 'emergency', 'delay', 'appointment', 
                            'remark', 'order_type', 'worker_id', 'start_time', 'end_time', 'status', 'create_time',
        ),
            
        'ClassDetail'    =>  array(
                            'detail_id', 'detail_name', 'price', 'unit',
                            '_on'=>'Orders.detail_id = ClassDetail.detail_id'
                
        )
    );
}